package com.fanxj.service;

import com.fanxj.Utils.ImportResult;
import com.fanxj.domain.Relic;
import org.apache.commons.csv.CSVRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.xml.bind.ValidationException;
import java.io.InputStream;
import java.util.List;

public interface RelicImportService {
    String validateField(CSVRecord record, String field) throws ValidationException;
    ImportResult processCSV(InputStream inputStream) ;
    void batchInsert(List<Relic> relics) ;
}
